<template>
	<view>
		<!-- 头部 -->
		<view class="top">
			<view class="top_one">
				FKM
			</view>
			<view class="top_tow">
				<view class="top_three">
					<view class="one">
						手机号
					</view>
					<view class="tow">
						<input type="text" placeholder="请输入账户名" v-model="form.username"/>
					</view>
					<view class="three">
						<input type="password" placeholder="请输入密码" v-model="form.pass"/>
					</view>
					<view class="login" @click="deng">
						登录
					</view>
					<view class="mi">
						<view class="mo">
								<label>
									<checkbox value="checkbox1" />
								</label>
						</view>
						<view class="mm">
							我已阅读并同意<text>《FKM用户协议》《FKM隐私政策》</text>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {checklogin} from '@/apis/index.js'
	export default {
		data() {
			return {
				form:{}
			};
		},
		methods:{
			async deng(){
				let res = await checklogin(this.form)
				console.log(res);
				this.$code.success('登录成功')
				this.$common.go('/pages/home/home')
			}
		}
	}
</script>

<style lang="less">
@import url('./login.less');
</style>
